import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'

const Good: AppRouteRecordRaw = {
    path: '/goods',
    name: 'good',
    component: DEFAULT_LAYOUT,
    meta: {
        title: '商品管理',
        locale: 'menu.list.good',
        requiresAuth: true,
        icon: 'icon-list',
        order: 2,
    },
    children: [
        {
            path: 'list',
            name: 'Good',
            component: () => import('@/views/good/index.vue'),
            meta: {
                title: '商品管理',
                locale: 'menu.list.good',
                requiresAuth: true,
                roles: ['*'],
            },
        },
    ],
}

export default Good
